'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/api/goods', controller.api.goods.index);
  router.get("/api/sort",controller.api.sort.index);
  router.get("/getToken",controller.token.index);
  router.get("/api/addCart",controller.api.addCart.index);//localhost:7001/api/addCart?id=6073
  router.post("/api/login",controller.api.login.index);
  router.post("/api/logout/:id",controller.api.logout.index);
  router.get("/api/getCartList",controller.api.getCartList.index);
  router.post("/api/editCartList",controller.api.editCartList.index);
  router.post("/api/deleteCart",controller.api.deleteCart.index);
  router.post("/api/setAllchecked",controller.api.setAllchecked.index);
}
